package com.leonzx.base.config.security;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * shiro读取配置文件
 *
 * Created by liang on 2016/9/25.
 */
@ConfigurationProperties(prefix = "shiro")
public class ShiroProperties {
    private Class<?> realm;
    private String loginUrl;
    private String successUrl;
    private String unauthorizedUrl;

    public Class<?> getRealm() {
        return realm;
    }

    public void setRealm(Class<?> realm) {
        this.realm = realm;
    }

    public String getLoginUrl() {
        return loginUrl;
    }

    public void setLoginUrl(String loginUrl) {
        this.loginUrl = loginUrl;
    }

    public String getSuccessUrl() {
        return successUrl;
    }

    public void setSuccessUrl(String successUrl) {
        this.successUrl = successUrl;
    }

    public String getUnauthorizedUrl() {
        return unauthorizedUrl;
    }

    public void setUnauthorizedUrl(String unauthorizedUrl) {
        this.unauthorizedUrl = unauthorizedUrl;
    }
}
